//
//  PlayerControllView.m
//  NvSellerShow
//
//  Created by dx on 17/6/28.
//  Copyright © 2017年 Meicam. All rights reserved.
//

#import "PlayerControllView.h"

@implementation PlayerControllView


- (void)awakeFromNib {
    [super awakeFromNib];
    self.hidden = YES;
    
    [self.slider setThumbImage:[self imageFromBundle:@"player_slide"] forState:UIControlStateNormal];
}

- (UIImage *)imageFromBundle:(NSString*)imageName {
    NSString *path = [[NSBundle mainBundle] pathForResource:@"NvSellerResource" ofType:@"bundle"];
    NSBundle *myBundle = [NSBundle bundleWithPath:path];
    NSString *imagePath = [myBundle pathForResource:imageName ofType:@"png"];
    UIImage *image = [UIImage imageWithContentsOfFile:imagePath];
    return image;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
